<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('oppo_permission');
0
|| checktplrefresh('./template/oppo/oppo/oppo_permission.htm', './template/oppo/oppo/oppo_nav.htm', 1375201519, '2', './data/template/2_2_oppo_oppo_permission.tpl.php', './template/oppo', 'oppo/oppo_permission')
;?><?php include template('common/header'); ?><link rel="stylesheet" href="static/oppo/oppo.css"/>
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <em>&rsaquo;</em>
<a href="oppo.php?mod=admin">ROM管理</a> <em>&rsaquo;</em>
<span>ROM发布人员管理</span>
</div>
</div>

<div id="ct" class="ct2_a wp cl">
<div class="mn">
<form action="<?php echo $theurl;?>" method="post" class="rfm">
<table>
<tbody>
<tr>
<td>用户名称：</td>
<td><input type="text" class="px" name="user_name" value="<?php echo $userName;?>"/></td>
</tr>
<tr>
<td>选择机型：</td>
<td><?php if(is_array($productList)) foreach($productList as $product) { $checked = in_array($product['product_id'], $currProductIdArr) ? 'checked="checked"' : '';?><label><input type="checkbox" value="<?php echo $product['product_id'];?>" name="product_id[]" <?php echo $checked;?>/> <?php echo $product['product_name'];?></label>
<?php } ?>
</td>
</tr>
<tr>
<td>发布级别：</td>
<td><?php if(is_array($publishLevel)) foreach($publishLevel as $key => $value) { $checked = in_array($key, $currLevelIdArr) ? 'checked="checked"' : '';?><label><input type="checkbox" value="<?php echo $key;?>" name="level_id[]" <?php echo $checked;?>/> <?php echo $value;?></label>
<?php } ?>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="hidden" name="permissionsubmit" value="true"/>
<button type="submit" name="permissionsubmitbtn" id="permissionsubmitbtn" value="true" class="pn pnc"><strong><?php echo $btnValue;?></strong></button>
</td>
</tr>
</tbody>
</table>
</form>
<table class="dt mtm">
<tbody>
<tr>
<th>ID</td>
<th>用户名</td>
<th>选择机型</td>
<th>发布级别</td>
<th>操作</td>
</tr><?php if(is_array($list)) foreach($list as $row) { ?><tr>
<td><?php echo $row['uid'];?></td>
<td><?php echo $row['user_name'];?></td>
<td><?php echo $row['products'];?></td>
<td><?php echo $row['levels'];?></td>
<td><a href="<?php echo $theurl;?>&act=edit&uid=<?php echo $row['uid'];?>&username=<?php echo urlencode($row['user_name']);?>">修改权限</a>&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="javascript:permission.del('<?php echo $row['uid'];?>')">删除用户</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="appl"><div class="tbn">
<h2 class="mt bbda">ROM管理</h2>
<ul>
<li <?php echo $leftNav['product'];?>><a href="oppo.php?mod=product">产品管理</a></li>
<li <?php echo $leftNav['permission'];?>><a href="oppo.php?mod=permission">权限管理</a></li>
<li <?php echo $leftNav['publish'];?>><a href="oppo.php?mod=publish">ROM发布</a></li>
<li <?php echo $leftNav['admin'];?>><a href="oppo.php?mod=admin">ROM管理</a></li>
<li <?php echo $leftNav['api'];?>><a href="oppo.php?mod=api">ROM接口</a></li>
</ul>
</div></div>
</div>

<script type="text/javascript">
var permission = {};
permission.del = function(uid) {
if (confirm('确定要删除吗？')) {
window.location.href = '<?php echo $theurl;?>&act=del&uid=' + uid;
}
}
</script><?php include template('common/footer'); ?>